package com.azure.mapper.report;

import com.azure.entity.AProductMonthlyhotReport;
import com.azure.entity.AProductMonthlyhotReportExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AProductMonthlyhotReportMapper {
    int countByExample(AProductMonthlyhotReportExample example);

    int deleteByExample(AProductMonthlyhotReportExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AProductMonthlyhotReport record);

    int insertSelective(AProductMonthlyhotReport record);

    List<AProductMonthlyhotReport> selectByExample(AProductMonthlyhotReportExample example);

    AProductMonthlyhotReport selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AProductMonthlyhotReport record, @Param("example") AProductMonthlyhotReportExample example);

    int updateByExample(@Param("record") AProductMonthlyhotReport record, @Param("example") AProductMonthlyhotReportExample example);

    int updateByPrimaryKeySelective(AProductMonthlyhotReport record);

    int updateByPrimaryKey(AProductMonthlyhotReport record);

    @Select("select * from a_product_monthlyhot_report where date = #{date} order by hot asc")
    List<AProductMonthlyhotReport>getMonthlyProductData(@Param("date")String date);
}